﻿using System;
using System.Web.Mvc;

namespace lwzlz.Web.Filter
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
    public class LogFilterAttribute : ActionFilterAttribute
    {
        public LogFilterAttribute() { }

        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            //ILog log = LogManager.GetLogger("test");//获取一个日志记录器
            //log.Info("test");

            base.OnActionExecuted(filterContext);
        }
    }
}